home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- puppetSprite(3, 1)
- puppetSprite(4, 1)
- puppetSprite(5, 1)
- puppetSprite(6, 1)
- if the timer > 2400 then
- repeat with n = 20 down to 1
- puppetSprite(n, 0)
- set the visible of sprite n to 1
- end repeat
- go(155)
- else
- duck1()
- duck2()
- duck3()
- duck4()
- go(the frame)
- end if
- end
-
- on duck1
- set the locH of sprite 3 to the locH of sprite 3 + random(10)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 3 to 301
- else
- set the locV of sprite 3 to 300
- end if
- if the locH of sprite 3 > 690 then
- set the locH of sprite 3 to -50
- end if
- end
-
- on duck2
- set the locH of sprite 4 to the locH of sprite 4 - random(15)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 4 to 352
- else
- set the locV of sprite 4 to 351
- end if
- if the locH of sprite 4 < -50 then
- set the locH of sprite 4 to 690
- end if
- end
-
- on duck3
- set the locH of sprite 5 to the locH of sprite 5 + random(15)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 5 to 386
- else
- set the locV of sprite 5 to 387
- end if
- if the locH of sprite 5 > 690 then
- set the locH of sprite 5 to -50
- end if
- end
-
- on duck4
- set the locH of sprite 6 to the locH of sprite 6 - random(10)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 6 to 418
- else
- set the locV of sprite 6 to 419
- end if
- if the locH of sprite 6 < -50 then
- set the locH of sprite 6 to 690
- end if
- end
-
- on mouseUp
- sound stop 1
- repeat with n = 20 down to 1
- puppetSprite(n, 0)
- set the visible of sprite n to 1
- end repeat
- go(155)
- end
-